import { Redirect } from 'react-router-dom';

import Login from '@/pages/login';
import Home from '@/pages/home';


const routes = [
    {
        path: '/',
        exact: true,
        render: () => (
            <Redirect to="/home" />
        )
    }, {
        path: '/login',
        component: Login
    },{
        path: '/home',
        component: Home
    },
]

export default routes;